home *** CD-ROM | disk | FTP | other *** search
/ HaCKeRz Kr0nlcKLeZ 1 / HaCKeRz Kr0nlcKLeZ.iso / scriptz / c64irc.exe / Ini / aliases.ini next >
Encoding:
INI File  |  1997-03-10  |  29.4 KB  |  480 lines

  1. [Aliases]
  2. n0=/c64title /.timer90 1 5 /titlebar - c  | /.timer91 1 6 /titlebar - c6  | /.timer92 1 7 /titlebar - c64  | /.timer93 1 8 /titlebar - c64  | /.timer94 1 9 /titlebar - c64.  | /.timer95 1 10 /titlebar - c64.i  | /.timer96 1 11 /titlebar - c64.ir  | /.timer97 1 12 /titlebar - c64.irc  | /.timer98 1 13 /titlebar - c64.irc v.  | /.timer99 1 14 /titlebar - c64.irc v.02  | /.timer100 1 15 /.titlebar - c64.irc v.02 By  | /.timer101 1 16 /titlebar - c64.irc v.02 By Craig  | /.timer102 1 17 /titlebar - c64.irc v.02 By Craig E.  | /.timer103 1 18 /titlebar - c64.irc v.02 By Craig E. Richards 
  3. n1=ircopscan {
  4. n2=  if ($1 == $null) { echo 4 -s Error, type: /ircopscan [-e|-c] | halt }
  5. n3=  if (# == $null) { set %window -s } | else { set %window # } | set %total 0 | write -c $mircdir $+ raw.txt
  6. n4=  if ($1 == -e) { echo 6 This will scan the entire network and tell you the current visible IRCops online. | set %total 0 | set %option 1 | write $mircdir $+ raw.txt /echo 4 %window :ì: Listing IRCops! :ì: | .enable #ircopscan | who
  7. n5=  0 o }
  8. n6=  if ($1 == -c) {
  9. n7=    if (# == $null) { echo 4 -s Error, try using this is the channel window. | halt }
  10. n8=    msg # Now listing visible IRCops on all networks.
  11. n9=    set %total 0 | set %option 2 | write $mircdir $+ raw.txt /msg # :ì: Listing IRCops! :ì: | .enable #ircopscan | who 0 o
  12. n10=  }
  13. n11=}
  14. n12=/stats {
  15. n13=  set %StatsChanOps 0
  16. n14=  set %StatsNonOps 0
  17. n15=  set %StatsIRCops 0
  18. n16=  set %StatsAway 0
  19. n17=  set %StatsVoiced 0
  20. n18=  set %StatsHere 0
  21. n19=  set %StatsClones 0
  22. n20=  if ($1 == $null) && ($2 == $null) && (#* iswm $active) { set %statchan # | set %StatsDisplay msg # | who %statchan }
  23. n21=  elseif ($1 == -e) && ($2 == $null) && (#* iswm $active) { set %statchan # | set %StatsDisplay echo %statchan | who %statchan }
  24. n22=  elseif (#* iswm $1) && ($2 == $null) { set %statchan $1 | if ($me ison %statchan) { set %StatsDisplay msg %statchan } | else { set %StatsDisplay echo -s } | who %statchan }
  25. n23=  elseif ($1 == -e) && (#* iswm $2) { set %statchan $2 | set %StatsDisplay echo %statchan | who %statchan }
  26. n24=  else {
  27. n25=    echo 3Invalid command option or you tried to retrieve stats on the current channel when you were not in a channel.
  28. n26=    echo 3Usage: /stats [-e] [#channel]
  29. n27=    echo -
  30. n28=  }
  31. n29=}
  32. n30=percent {
  33. n31=  %x = [ $$1 ] * [ 10000 ]
  34. n32=  %x = [ %x ] / [ $$2 ]
  35. n33=  if ($len(%x) == 1) { set %x 0 . $+ %x | goto next }
  36. n34=  if ($len(%x) == 2) { set %x 0 . $+ %x | goto next }
  37. n35=  if ($len(%x) == 3) { set %x $left(1,%x) $+ . $+ $right(2,%x) | goto next }
  38. n36=  if ($len(%x) == 4) { set %x $left(2,%x) $+ . $+ $right(2,%x) | goto next }
  39. n37=  if ($len(%x) == 5) { set %x $left(3,%x) $+ . $+ $right(2,%x) | goto next }
  40. n38=  :next
  41. n39=  if ($right(3,%x) == .00) { set %x $remove(%x,.00) | goto next2 }
  42. n40=  if (*0 iswm %x) {
  43. n41=    if ($len(%x) == 4) { set %x $left(1,%x) }
  44. n42=    if ($len(%x) == 5) { set %x $left(2,%x) }
  45. n43=    if ($len(%x) == 6) { set %x $left(3,%x) }
  46. n44=  }
  47. n45=  :next2
  48. n46=  return %x
  49. n47=  unset %x
  50. n48=}
  51. n49=/time {
  52. n50=  //msg $active 1,15 1,14 4,1  $+ $rtime 1,14 1,15á
  53. n51=}
  54. n52=/time2 {
  55. n53=  //echo $active 1,15 1,14 4,1  $+ $rtime 1,14 1,15á
  56. n54=}
  57. n55=/rtime {
  58. n56=  set %realtime $time
  59. n57=  set %hour $token(1,58,%realtime)
  60. n58=  set %type AM  
  61. n59=  if (%hour = 0) /set %hour 12 
  62. n60=  if (%hour > 12) { /set %hour %hour - 12 | /set %type PM }
  63. n61=  if (%hour = 12) /set %type PM
  64. n62=  set %min $token(2,58,%realtime)
  65. n63=  set %realtime %hour $+ : $+ %min %type
  66. n64=  if (%online = on) /set %online %realtime 
  67. n65=  unset %hour | /unset %min | /unset %type | /return %realtime
  68. n66=}
  69. n67=backwards {
  70. n68=  unset %backtext
  71. n69=  if ($1 == -d) { 
  72. n70=    set %backtext º 
  73. n71=    set %text $remove(*1,$left(3,*1))
  74. n72=  }
  75. n73=  else { %text = *1 }
  76. n74=  %space = $chr(32)
  77. n75=  %i = $len(%text) + 1
  78. n76=  :next
  79. n77=  dec %i 1
  80. n78=  if %i == 0 { say %backtext | halt }
  81. n79=  %thischar = $mid(%i,1,%text)
  82. n80=  if %thischar == %space {
  83. n81=    %thislet =  
  84. n82=    if %backtext == $null { set %backtext %thislet | goto next }
  85. n83=    else { set %backtext %backtext $+ %thislet | goto next }
  86. n84=  }
  87. n85=  if %backtext == $null { set %backtext %thischar | goto next }
  88. n86=  else { set %backtext %backtext $+ %thischar | goto next }
  89. n87=}
  90. n88=blocktalk {
  91. n89=  set %bk $$?1="Enter Text:" *2
  92. n90=  %bk = $replace(%bk,a,[A])
  93. n91=  %bk = $replace(%bk,b,[B])
  94. n92=  %bk = $replace(%bk,c,[C])
  95. n93=  %bk = $replace(%bk,d,[D])
  96. n94=  %bk = $replace(%bk,e,[E])
  97. n95=  %bk = $replace(%bk,f,[F])
  98. n96=  %bk = $replace(%bk,g,[G])
  99. n97=  %bk = $replace(%bk,h,[H])
  100. n98=  %bk = $replace(%bk,i,[I])
  101. n99=  %bk = $replace(%bk,j,[J])
  102. n100=  %bk = $replace(%bk,k,[K])
  103. n101=  %bk = $replace(%bk,l,[L])
  104. n102=  %bk = $replace(%bk,m,[M])
  105. n103=  %bk = $replace(%bk,n,[N])
  106. n104=  %bk = $replace(%bk,o,[O])
  107. n105=  %bk = $replace(%bk,p,[P])
  108. n106=  %bk = $replace(%bk,q,[Q])
  109. n107=  %bk = $replace(%bk,r,[R])
  110. n108=  %bk = $replace(%bk,s,[S])
  111. n109=  %bk = $replace(%bk,t,[T])
  112. n110=  %bk = $replace(%bk,u,[U])
  113. n111=  %bk = $replace(%bk,v,[V])
  114. n112=  %bk = $replace(%bk,w,[W])
  115. n113=  %bk = $replace(%bk,x,[X])
  116. n114=  %bk = $replace(%bk,y,[Y])
  117. n115=  %bk = $replace(%bk,z,[Z])
  118. n116=  %bk = $replace(%bk,!,[!])
  119. n117=  %bk = $replace(%bk,?,[?])
  120. n118=  %bk = $replace(%bk,$,[$])
  121. n119=  %bk = $replace(%bk,#,[#])
  122. n120=  %bk = $replace(%bk,/,[/])  
  123. n121=  %bk = $replace(%bk,\,[\])
  124. n122=  %bk = $replace(%bk,|,[|])
  125. n123=  say %bk
  126. n124=  unset %bk
  127. n125=}
  128. n126=ctext { 
  129. n127=  unset %ctext*
  130. n128=  set %loop 0
  131. n129=  set %ctext *1
  132. n130=  :1
  133. n131=  inc %loop 1
  134. n132=  if ($mid(%loop,1,%ctext) == $chr(32)) { %ctext2 = %ctext2 $+ $chr(160) | goto 1 }
  135. n133=  %ctext1 =  $+ $rand(1,13) $+ $mid(%loop,1,%ctext)
  136. n134=  if (%ctext2 == $null) { %ctext2 = %ctext1 }
  137. n135=  else { %ctext2 = %ctext2 $+ %ctext1 }
  138. n136=  ;echo -s .. %ctext4
  139. n137=  if (%loop => $len(%ctext)) { say %ctext2 | unset %ctext* | unset %loop | halt }
  140. n138=  goto 1
  141. n139=}
  142. n140=clock {
  143. n141=  say 4,2-2,4=4,2-2,4=4,2-2,4=4,2-2,4=4,2-2,4=4,2-2,4=4,2-2,4=4,2-2,4=4,2-
  144. n142=  say 4,2-2,4=4,2-2,4=13,2 $rtime 2,4=4,2-2,4=4,2-
  145. n143=  say 4,2-2,4=4,2-2,4=4,2-2,4=4,2-2,4=4,2-2,4=4,2-2,4=4,2-2,4=4,2-2,4=4,2-
  146. n144=}
  147. n145=/xmas { %num = 1 | unset %msg  | %msg =  | %color = p
  148. n146=  :start
  149. n147=  if %color == p { %num2 = 3 | %num3 = 4 | %color = y | goto add }
  150. n148=  if %color == y  { %num2 = 4 | %num3 = 3 | %color = p | goto add }
  151. n149=  :add
  152. n150=  if $mid(%num,1, *1) != $null {
  153. n151=    %msg = %msg $+   $+ %num2 $+ , $+  %num3 $+  $mid(%num, 1,*1) $+   
  154. n152=    inc %num 
  155. n153=  goto start  }
  156. n154=  say %msg
  157. n155=}
  158. n156=/coke { %num = 1 | unset %msg  | %msg =  | %color = p
  159. n157=  :start
  160. n158=  if %color == p { %num2 = 0 | %num3 = 4 | %color = y | goto add }
  161. n159=  if %color == y  { %num2 = 4 | %num3 = 0 | %color = p | goto add }
  162. n160=  :add
  163. n161=  if $mid(%num,1, *1) != $null {
  164. n162=    %msg = %msg $+   $+ %num2 $+ , $+  %num3 $+  $mid(%num, 1,*1) $+   
  165. n163=    inc %num 
  166. n164=  goto start  }
  167. n165=  say %msg
  168. n166=}
  169. n167=/brick { %num = 1 | unset %msg  | %msg =  | %color = p
  170. n168=  :start
  171. n169=  if %color == p { %num2 = 1 | %num3 = 4 | %color = y | goto add }
  172. n170=  if %color == y  { %num2 = 4 | %num3 = 1 | %color = p | goto add }
  173. n171=  :add
  174. n172=  if $mid(%num,1, *1) != $null {
  175. n173=    %msg = %msg $+   $+ %num2 $+ , $+  %num3 $+  $mid(%num, 1,*1) $+   
  176. n174=    inc %num 
  177. n175=  goto start  }
  178. n176=  say %msg
  179. n177=}
  180. n178=colorchart {
  181. n179=  say The colors are: 0,1White[0] 1Black[1] 2Dk.Blue[2] 3Green[3] 4Red[4] 5Brown[5] 6Purple[6] 7Orange[7] 8Yellow[8] 9Lt.Green[9] 10Teal[10] 11Cyan[11] 12Royal[12] 13Lt.Purple[13] 14Dk.Grey[14] 15Lt.Grey[15]
  182. n180=}
  183. n181=counter %temp = $ctime - $$1 | return %temp
  184. n182=timeonline ame has been online $duration($counter(%started))
  185. n183=code {
  186. n184=  set %pos1 0
  187. n185=  if (%code1 == º) { goto start1 }
  188. n186=  if (%key < 2) || (%key > 90) { key }
  189. n187=  set %len1 $len(*1) | set %code *1 | set %color1 4 | set %code1 "" | set %codekey %key
  190. n188=  :start1
  191. n189=  inc %pos1 1
  192. n190=  %asc1 = $asc($mid(%pos1,1,%code)) + %codekey
  193. n191=  if (%asc1 > 126) { dec %asc1 94 }
  194. n192=  set %code1 %code1 $+ $chr(%asc1)
  195. n193=  if (%pos1 < %len1) { goto start1 }
  196. n194=  say º %code1
  197. n195=  echo %color1 > º %code
  198. n196=  unset %len1 | unset %asc1 | unset %pos1 | unset %code | unset %code1 | unset %color1
  199. n197=  unset %codekey
  200. n198=}
  201. n199=code0 set %len1 $len(*1) | set %code *1 | set %code1 º | set %color1 2 | set %codekey 91 | code
  202. n200=decode {
  203. n201=  set %len2 $len(%decode)
  204. n202=  if (%len2 > 300) { echo 4 %chan *** Decode halted; possible decode flood from %nick $+ . | halt }
  205. n203=  if ($mid(1,1,%decode) == º) { set %pos2 1 | set %color2 2 | set %decodekey 91 | goto start1 }
  206. n204=  if (%key < 2) || (%key > 90) { key }
  207. n205=  set %pos2 0 | set %color2 4 | set %decodekey %key
  208. n206=  :start1
  209. n207=  set %code2 ""
  210. n208=  %key2 = %decodekey + 33
  211. n209=  :start2
  212. n210=  inc %pos2 1
  213. n211=  set %asc2 $asc($mid(%pos2,1,%decode))
  214. n212=  if (%asc2 < %key2) { inc %asc2 94 }
  215. n213=  dec %asc2 %decodekey
  216. n214=  if (%asc2 == 94) { set %asc2 160 }
  217. n215=  set %code2 %code2 $+ $chr(%asc2)
  218. n216=  if (%pos2 < %len2) { goto start2 }
  219. n217=  echo %color2 %chan < $+ %nick $+ > %code2
  220. n218=  unset %len2 | unset %nick | unset %chan | unset %asc2 | unset %key2 | unset %pos2
  221. n219=  unset %code2 | unset %color2 | unset %decode | unset %decodekey
  222. n220=}
  223. n221=key {
  224. n222=  set %key $$?="Number (2-90 excluding 10,13 and 27)?"
  225. n223=  mykey
  226. n224=}
  227. n225=mykey {
  228. n226=  if ((%key < 2) || (%key == 10) || (%key == 13) || (%key == 27) || (%key > 90)) {
  229. n227=    echo 4 $active *** Enter a number between 2 and 90, excluding 10,13 and 27.
  230. n228=  }
  231. n229=  else { echo 4 $active *** Code key is %key $+ . }
  232. n230=}
  233. n231=end_hangman msg %hangmanchan h┴±g m├± The game is now over!  $me has ended it - phrase was  $+ %realword $+  | msg %hangmanchan It took %wrongnum wrong tries and %rightnum right ones. | disable #game | halt
  234. n232=hangman {
  235. n233=  if ($1 !isnum) { echo *** Usage: /hangman <num wrong guesses> <phrase> | halt } | if ($1 !isnum) { echo *** Number of guesses must be a number... | halt } %hmwrong = $1
  236. n234=  if ($1 == $null) { echo 4 *** Please specify a phrase, usage is '/hangman <phrase>' | halt }
  237. n235=  enable #game | set %rightnum 0 | set %correctlets  | set %realword *2 | set %dashword "" | set %wrong  | set %lettersright "" | set %wrongnum 0 | %i = 0 | %hangmanchan = # | :next | inc %i
  238. n236=  if (%i > $len(*2)) { goto done }
  239. n237=  %thisasc = $asc($mid(%i,1,*2))
  240. n238=  if (%thisasc == 32) { set %dashword %dashword $+   | goto next }
  241. n239=  else { set %dashword %dashword $+ - | goto next }
  242. n240=  :done | say h┴±g m├± New Game Started h┴±g m├± | say Try To Guess: %dashword | say Everybody together gets %hmwrong guess(es).  Type !guess <letter> to guess, !solve <phrase> to solve it. | halt
  243. n241=}
  244. n242=clone {
  245. n243=  set %numclones 0 | set %num $nick(0,#) | set %start $ctime
  246. n244=  echo -a 13<12=4[2Clone detection14 initiated on 1,8 #  14 - Scanning 4 %num
  247. n245=  14 Users 4]12=13>
  248. n246=  :next
  249. n247=  set %site $address($nick(%num,#),2)
  250. n248=  if (%clone. [ $+ [ %site ] ] == $null) { set %clone. [ $+ [ %site ] ] ñ8,1 $+ $nick(%num,#) $+ ñ
  251. n249=  }
  252. n250=  else {
  253. n251=    set %clone. [ $+ [ %site ] ]  %clone. [  $+ [ %site ] ] ñ8,1 $+ $nick(%num,#) $+ ñ
  254. n252=    if (%clonenick == $null) {
  255. n253=      set %clonenick %site
  256. n254=      inc %numclones 1
  257. n255=    }
  258. n256=    elseif (%site  !isin %clonenick) {
  259. n257=      set %clonenick %clonenick %site
  260. n258=      inc %numclones 1
  261. n259=    }
  262. n260=  }
  263. n261=  dec %num
  264. n262=  if (%num > 0) goto next
  265. n263=  set %end $ctime
  266. n264=  if (%clonenick != $null) {
  267. n265=    :displaynext
  268. n266=    echo 4 -a 13 Clones >>> %clone. [ $+ [ $gettok(%clonenick,%numclones,32) ]  ] 2 at
  269. n267=    14 $gettok(%clonenick,%numclones,32) 
  270. n268=    dec %numclones
  271. n269=    if (%numclones > 0) goto displaynext
  272. n270=  }
  273. n271=  else echo -a 14>>>>> 2No Clones 14Found on 1,8 #  14>>>>>
  274. n272=  %end = %end - %start
  275. n273=  echo -a 13<12=4[2Clone scan 14 completed on 1,8 #  14 in 4 $duration(%end)
  276. n274=  4]12=13>
  277. n275=  unset %num %clone.* %clonenick %numclones %start %end %site
  278. n276=}
  279. n277=autoial {
  280. n278=  if ($$1 == ON) {
  281. n279=    echo -a Auto Updating IAL is now ON
  282. n280=    .enable #updateIAL
  283. n281=    ial ON
  284. n282=  }
  285. n283=  elseif ($$1 == Off) {
  286. n284=    echo -a Auto Updating IAL is now OFF
  287. n285=    .disable #updateIAL
  288. n286=  }
  289. n287=}
  290. n288=slisthelp { 
  291. n289=  if $1 == $null { set %nick $me } | else { set %nick $1 } 
  292. n290=  /notice %nick [SLIST HELP]
  293. n291=  /notice %nick SLIST  <#channel> <nick/address> <type> <days> <reason>  
  294. n292=  /notice %nick RLIST  <#channel> <nick/address>                                                                         
  295. n293=}
  296. n294=slist {  
  297. n295=  if %nick == $null { set %nick $me } 
  298. n296=  if  ( $1 == $null ) || ( $2 == $null ) { slisthelp | halt }
  299. n297=  if @ isin $2 { set %manual YES  } | else { set %manual NO } | set %reason *5 
  300. n298=  set %chan $1
  301. n299=  set %days $4 
  302. n300=  if %manual == NO {  
  303. n301=    :standard
  304. n302=    set %slisttype $3
  305. n303=    %x = $4 * 86400
  306. n304=    %addtype = %slisttype + 1
  307. n305=    set %addr $address($2,%addtype) 
  308. n306=    if %addr == $null { .enable #slist | .whois $2 | halt }
  309. n307=    .ruser %addr 
  310. n308=    .auser =48 %addr
  311. n309=  }
  312. n310=  else { 
  313. n311=    :manual
  314. n312=    %x = $4 * 86400
  315. n313=    .ruser $2 
  316. n314=    .auser =48 $2 
  317. n315=    set %addr $2
  318. n316=  }
  319. n317=  :add
  320. n318=  %expire = $ctime + %x
  321. n319=  set %reason $left(10,$fulldate)  for %days days : %reason
  322. n320=  write -ds $+ %addr [ $mircdir $+ slist.txt ]
  323. n321=  write -il1 $mircdir $+ slist.txt %addr %expire %chan %nick %reason
  324. n322=  .mode  %chan +b %addr  | fkick %chan %addr %reason
  325. n323=  .unset %expire  %addr %slisttype %addtype %x %chan %reason %manual %nick %days
  326. n324=}
  327. n325=rlist { 
  328. n326=  if %nick == $null { set %nick $me } 
  329. n327=  if  ( $1 == $null ) { slisthelp | halt }
  330. n328=  if $left(1,$1) == $chr(35) { set %chan $1 } | else  { slisthelp | halt } 
  331. n329=  if @ isin $2 { 
  332. n330=    set %addr  $2
  333. n331=    .write -ds $+ [ %addr ] [ $mircdir $+ slist.txt ]
  334. n332=    echo $active %addr  has been removed from the slist.
  335. n333=    .mode %chan -b %addr
  336. n334=    .ruser =48 %addr
  337. n335=  }
  338. n336=  else { 
  339. n337=    set %bnick $2
  340. n338=  .enable #rlist | /whois $2 }
  341. n339=}
  342. n340=vlist { 
  343. n341=  set %chan $1 | .set %nick $2 | .set %addr $3 
  344. n342=  set %line $read -s $+ [ %addr ] [ $mircdir $+ slist.txt ]
  345. n343=  if %line == $null { echo 5 $active Warning! No Slist Listing for %nick $+ ( $+ %addr $+ ) | /mode $chan   | halt } 
  346. n344=  set %bchan $token(2,32,%line) 
  347. n345=  if %chan != %bchan { halt } 
  348. n346=  set %expire $token(1,32,%line) 
  349. n347=  set %bnick $token(3,32,%line) 
  350. n348=  set %var %expire %bchan %bnick 
  351. n349=  %len = $len(%var) + 1
  352. n350=  set %reason $mid(%len,$len(%line),%line) 
  353. n351=  if  %expire > $ctime { set %expire OFF } | else { set %expire ON } 
  354. n352=  if %expire == OFF { /mode %chan +b %addr  | /kick %chan %nick %reason | .timer 1 3600 mode %chan -b %addr  } | else { .ruser =48 %addr  | write -ds $+ %addr $mircdir $+ slist.txt | /notice $me  %nick $+ 's Slist Time has expired. Watch him! :)  }
  355. n353=  unset %len %reason  %expire %line  %addr  %nick %chan %bnick %var
  356. n354=}
  357. n355=sclist {
  358. n356=  echo 5 -s [Slist Scan Started at $time $+ ] 
  359. n357=  set %x 1 
  360. n358=  :next
  361. n359=  set %line $read -l $+ %x [ $mircdir $+ slist.txt ]
  362. n360=  if %line == $null { echo 5 -s [End of Slist Scan] | unset  %expire %line  %addr %x | halt }
  363. n361=  set %addr $token(1,32,%line) 
  364. n362=  set %expire $token(2,32,%line) 
  365. n363=  if  %expire < $ctime { ruser =48 %addr | write -ds $+ %addr $mircdir $+ slist.txt | echo 5 -s    Removing Expired Ban for: %addr }
  366. n364=  inc %x | goto next 
  367. n365=}
  368. n366=/fkick { 
  369. n367=  if $3 != $null { set %reason *3 } | else { set %reason Mass Kick  } 
  370. n368=  set %fkickcount 1
  371. n369=  :kick
  372. n370=  if $$2 iswm $address($nick(%fkickcount,$1),0) { kick $1 $nick(%fkickcount,$1) %reason } | inc %fkickcount | if %fkickcount <= $nick(0,$1)  { goto kick }
  373. n371=}
  374. n372=slisting {
  375. n373=  if %nick == $null { set %nick $me } 
  376. n374=  if %viewslist == $null { set %viewslist Slist_Report } 
  377. n375=  set %slistlines $lines(slist.txt)  | set %slistlinect 1 | set %chan $1
  378. n376=  if %lview != 1 { msg %nick   [Slist Report]  } 
  379. n377=  else { /query %ViewSList | echo 4 %ViewSList  [Slist Report] }
  380. n378=  if %lview != 1 {
  381. n379=  msg %nick $replace(-Ban #--- Address----------Exp-----#chan--By---Date-----------Length---------Reason----------,-,$chr(160)) }
  382. n380=  else {
  383. n381=    echo 2 %ViewSList $replace(-----Address----------Exp-----#chan--By---Date-----------Length,-,$chr(160))
  384. n382=  }  
  385. n383=  :slistprint
  386. n384=  if %slistlinect <= %slistlines { set %line $read -l $+ %slistlinect slist.txt } 
  387. n385=  set %addr $token(1,32,%line) | set %bchan $token(3,32,%line) 
  388. n386=  if (%chan != %bchan) && (%chan != $null)  goto next 
  389. n387=  set %expire $mid(4,7,$asctime($token(2,32,%line) ) ) | set %bnick $token(4,32,%line)
  390. n388=  set %Sdate $token(5,32,%line) $token(6,32,%line) $token(7,32,%line) 
  391. n389=  set %Sdays $token(8,32,%line) $token(9,32,%line) $token(10,32,%line)
  392. n390=  set %var %addr %expire %bchan %bnick %Sdate %Sdays
  393. n391=  %len = $len(%var) + 4
  394. n392=  set %reason $mid(%len,$len(%line),%line) 
  395. n393=  if %lview != 1 { msg %nick ( $+  %slistlinect $+ )  %var %reason }
  396. n394=  else { 
  397. n395=    echo 3 %ViewSList ( $+  %slistlinect $+ )  %var 
  398. n396=    echo 3 %ViewSList      Reason $+ %reason 
  399. n397=  } 
  400. n398=  :next
  401. n399=  inc %slistlinect 
  402. n400=  if %slistlinect <= %slistlines { goto slistprint } 
  403. n401=  if %lview != 1 { msg %nick [Slist Report End] }
  404. n402=  else { echo 4 %ViewSList [Slist Report End] }
  405. n403=  unset %slist* %len %expire %bchan % %reason %line %var %addr %chan %bnick %lview
  406. n404=}
  407. n405=wm  {
  408. n406=  echo -a 13<12=4[ 14Searching for  -2 $$1 14- in 1,8 # 4]12=13>
  409. n407=  set %fcount 0 | set %num $nick(0,#)
  410. n408=  :next
  411. n409=  if ($$1 iswm $address($nick(%num,#),5)) {
  412. n410=    echo -a 13 Found >>>  2 $address($nick(%num,#),5) 
  413. n411=    inc %fcount
  414. n412=  }
  415. n413=  dec %num
  416. n414=  if (%num > 0) goto next
  417. n415=  echo -a 13<12=4[ 14Found4 %fcount 14instance(s) of2 $$1 4]12=13>
  418. n416=  unset %fcount  %num
  419. n417=}
  420. n418=/http .enable #http | dns $$1 | set %httpdir $2 | raw -q privmsg $me :DCC CHAT CHAT %rlongip 80 $+ 
  421. n419=chanstats {
  422. n420=  echo 1 -a There are $+ $chr(3) $+ 12 $opnick(0,#) $chr(3) $+ ops in #
  423. n421=  echo 1 -a # modes: $+ $chr(3) $+ 12 $chan(#).mode
  424. n422=  echo 1 -a # topic: $+ $chr(3) $+ 12 $chan(#).topic
  425. n423=}
  426. n424=tmo { set %i 0 | set %tmo 0 | :start | inc %i | if (%file [ $+ [ %i ] ] == $null) goto next | %tmo = %tmo + $lof(%file [ $+ [ %i ] ] ) | goto start | :next | %tmo2 = %tmo / 1000000 | %tmo1 = %tmo % 1000000 | if ($len(%tmo1) < 7) set %tmo1 1 | %tmo2 = %tmo2 $+ . $+ $left(1,%tmo1) | halt }
  427. n425=xdcc { if ($1 == on) { .disable #fserve | set %fserve off | set %xdccs on | .enable #xdcc | .enable #xdccmsg | halt } | if ($1 == off) { set %xdccs off | .disable #xdcc | .disable #xdccmsg | halt } | if (($1 == file) && ($2 != $null)) set %file [ $+ [ $2 ] ] $dir="Select File for Pack [ $2 ] "  *.* | if (($1 == desc) && ($2 != $null)) { set %filedesc [ $+ [ $2 ] ] $?="Pack Description for [ [ $2 ] $+ ] :" | tmo } | if (($1 == note) && ($2 != $null)) set %fcomment [ $+ [ $2 ] ] $?="Comment for [ $2 ] " } 
  428. n426=kps { if ($len($1) > 3) %cpsget = $remove($1,$right(3,$1)) $+ . $+ $left(2,$right(3,$1)) | else %cpsget = 0 $+ . $+ $1 | return %cpsget }
  429. n427=checksend { set %i 0 | :start | inc %i | if ($send(%i) == $null) halt | if (($send(%i) == $1) && ($send(%i).file == $2) && ($send(%i).status == waiting)) { close -s $1 $2 | raw -q notice $1 :Timeout: $2 | echo %c -a %h One or more DCC SENDs to $1 have timed out. | halt } | goto start }
  430. n428=pmin { if (($1 == $null) || ($2 == $null) || ($1 > %numpacks)) halt | if ($2 == 0) { unset %minsp [ $+ [ $1 ] ] | echo %c -a %h Removed minspeed for  $+ %c2 $+ $1 $+ . | halt } | set %minsp [ $+ [ $1 ] ] [ $2 * 1000 ] | echo %c -a %h Minspeed for Pack $1 $+ :  $+ %c2 $+ $2 $+ kb/s. }
  431. n429=minspeed { if ($1 == $null) halt | if ($1 == 0) { set %msall off | unset %allspeed | halt } | set %msall on | %allspeed = $1 * 1000 | echo %c -a %h Minspeed:  $+ %c2 $+ $1 $+ kb/s. } 
  432. n430=doffer { set %xdccs off | .disable #xdcc | .disable #xdccmsg | set %msall off | set %allspeed 0 | unset %minsp* | unset %file* | unset %fcomment* | set %record 0 | set %numpacks 0 | set %xdcclist 0 | set %xdccsend 0 | unset %tlmegs | unset %totalmegs | unset %get* | echo %c -a %h All packs removed from offer list. | set %xdccs off | cq }
  433. n431=addpack { %num = %numpacks + 1 | set %get [ $+ [ %num ] ] 0 | set %filedesc [ $+ [ %num ] ] $$?="Pack Description for [ [ %num ] $+ ] :" | set %fcomment [ $+ [ %num ] ] $?="Comment for [ %num ] Press Cancel for None:" | set %file [ $+ [ %num ] ] $dir="Select File for Pack [ %num ] "  *.* | set %numpacks %num | echo %c -a %h  XDCC Pack Number  $+ %c2 $+ [ %num ] $+  has been added. | tmo }
  434. n432=offer { set %record 0 | set %lrecord 0 | set %fserve off | .disable #fserve | set %xdccs on | .enable #xdcc | .enable #xdccmsg | set %numpacks $$?="Number of Packs:" | set %num 0 | :start | inc %num | if (%num > %numpacks) { set %showsum $$?="Show Summary Line? y for Yes, n for No" | echo %c -a %h  XDCC Offer has been set. Type /dcc anytime for DCC status. | tmo } | set %get [ $+ [ %num ] ] 0 | set %filedesc [ $+ [ %num ] ] $$?="Pack Description for [ [ %num ] $+ ] :" | set %fcomment [ $+ [ %num ] ] $?="Comment for [ %num ] Press Cancel for None:" | set %file [ $+ [ %num ] ] $dir="File for Pack [ %num ] "  *.* | goto start }
  435. n433=cq write -c %qpath
  436. n434=fsize { if ($lof(%file [ $+ [ %num ] ] ) < 1000) { %fsize = $lof(%file [ $+ [ %num ] ] ) | set %bc b } | if (($lof(%file [ $+ [ %num ] ] ) >= 1000) && ($lof(%file [ $+ [ %num ] ] ) < 1000000)) { %fsize = $lof(%file [ $+ [ %num ] ] ) / 1000 | set %bc k } | if ($lof(%file [ $+ [ %num ] ] ) > 1000000) { %fsize = $lof(%file [ $+ [ %num ] ] ) / 1000000 | %fsize1 = $lof(%file [ $+ [ %num ] ] ) % 1000000 | %fsize = %fsize $+ . $+ $left(1,%fsize1) | set %bc M } | return %fsize }
  437. n435=psend { if ($3 != $null) write -dl1 %qpath | if ($2 > %numpacks) halt | raw -q notice $1 :Sending you %filedesc [ $+ [ $2 ] ] $+ , which is one file. | inc %get [ $+ [ $2 ] ] | .timer 1 %chsend checksend $1 [ $nopath(%file [ $+ [ $2 ] ] ) ] | if (%minsp [ $+ [ $2 ] ] != $null) { .timer 1 20 checkspeed $nick $nopath(%file [ $+ [ $2 ] ] ) [ %minsp [ $+ [ $2 ] ] ] } | dcc send $1 [ %file [ $+ [ $2 ] ] ] }
  438. n436=nlist { if (%numpacks == 0) halt | if ($1 == $null) set %xc .notice $active | else set %xc .notice $1 | sdcc }
  439. n437=plist { if (%numpacks == 0) halt | if ($1 == $null) set %xc amsg | else set %xc msg $1 | sdcc } 
  440. n438=dcc {
  441. n439=  if ($1 == send) { dcc send *2 | halt } | if ($1 == chat) { dcc chat *2 | halt } | if (($send(0) == 0) && ($get(0) == 0)) { echo %c -a %h Nothing on DCC list. | halt } | echo %c -a %h 1, $+ %c3 $+ DnumááááTypeááááNickáááááááStatusááááKpsáááááFilenameááá | if ($get(0) == 0) { set %i 1 | goto send } | if ($send(0) == 0) set %anysends no | set %i 0 | :start | inc %i | unset %barl | if (%i > $get(0)) goto send | %cpsget = $kps($get(%i).cps) | if (($get(%i).cps == n/a) || ($get(%i).cps == 0)) { set %cpsget 0.00 | set %geta4 n/a | goto get1 } | set %geta1 0 | set %geta2 0 | set %geta3 0
  442. n440=  %geta = $get(%i).size - $get(%i).rcvd | %geta = %geta / $get(%i).cps | :etag | if (%geta < 60) goto sec | if ((%geta >= 60) && (%geta < 3600)) goto min | %geta3 = %geta / 3600 | %geta = %geta % 3600 | goto etag | :min | %geta2 = %geta / 60  | %geta = %geta % 60  | goto etag | :sec | if (%geta != 0) set %geta1 %geta | if ((%geta1 >= 0) && (%geta1 < 10)) %geta1 = 0 $+ %geta1 | if ((%geta2 >= 0) && (%geta2 < 10)) %geta2 = 0 $+ %geta2 | %geta4 = %geta3 $+ : $+ %geta2 $+ : $+ %geta1 | :get1 
  443. n441=  echo %c -a áááááááá# $+ %i  áááááGETáááá $get(%i) ááá $get(%i).status áá %cpsget ááá $get(%i).file | %barl = $get(%i).pc + 1 | echo %c -a $read -l $+ %barl %path $+ \dccstat.txt $get(%i).pc $+ % áETA %geta4 ( $+ %c2 $+ $get(%i).rcvd $+  of  $+ %c3 $+ $get(%i).size $+  bytes) | goto start | :send | dec %i | set %j 0 | :begin | inc %j | inc %i | unset %barl | if (%j > $send(0)) goto end | %cpssend = $kps($send(%j).cps) | if (($send(%j).cps == n/a) || ($send(%i).cps == 0)) { set %cpssend 0.00 | set %geta4 n/a | goto send1 } | set %geta1 0 | set %geta2 0 | set %geta3 0
  444. n442=  %geta = $send(%j).size - $send(%j).sent | %geta = %geta / $send(%j).cps | :etas | if (%geta < 60) goto secs | if ((%geta >= 60) && (%geta < 3600)) goto mins | %geta3 = %geta / 3600 | %geta = %geta % 3600 | goto etas | :mins | %geta2 = %geta / 60  | %geta = %geta % 60 | goto etas | :secs | if (%geta != 0) set %geta1 %geta | if ((%geta1 >= 0) && (%geta1 < 10)) %geta1 = 0 $+ %geta1 | if ((%geta2 >= 0) && (%geta2 < 10)) %geta2 = 0 $+ %geta2 | %geta4 = %geta3 $+ : $+ %geta2 $+ : $+ %geta1 | :send1
  445. n443=  echo %c -a áááááááá# $+ %i áááááSEND áá $send(%j) áá $send(%j).status áá %cpssend áá $send(%j).file | %barl = $send(%j).pc + 1 | echo %c -a $read -l $+ %barl %path $+ \dccstat.txt $send(%j).pc $+ % áETA %geta4 ( $+ %c2 $+ $send(%j).sent $+  of  $+ %c3 $+ $send(%j).size $+  bytes) | goto begin | :end 
  446. n444=}
  447. n445=sdcc {
  448. n446=  %numopen = %maxslots - $send(0) | set %num 0 | :start | inc %num | if (%num > %numpacks) { if (%showsum != y) halt | if (%showsum == y) { set %g 0 | set %totalmegs 0 | set %tlmegs 0 | :begin | inc %g | if (%g <= %numpacks) { %tmegs = %get [ $+ [ %g ] ] * $lof(%file [ $+ [ %g ] ] ) | inc %tlmegs %tmegs | %omegs = $lof(%file [ $+ [ %g ] ] ) | inc %ofmegs %omegs | goto begin } | %totalmegs = %tlmegs / 1000000 | %totalmegs1 = %tlmegs % 1000000 | %totalmegs = %totalmegs $+ . $+ $left(1,%totalmegs1) | %xc Total Offered:  $+ %tmo2 $+ M Total Snagged:  $+ %totalmegs $+ M } | set %xdcc open | halt }
  449. n447=  if ((%num == 1) && (%msall == on)) { %aspeed = %allspeed / 1000 | %xc ** %numpacks packs **   $+ %numopen $+  of  $+ %maxslots $+  slots open, queue:  $+ $lines(%qpath) $+ / $+ %maxqueue $+ . Min:  $+ %aspeed $+ kb/s, Record:  $+ %record $+ kb/s } | if ((%num == 1) && (%msall != on)) %xc ** %numpacks packs **   $+ %numopen $+  of  $+ %maxslots $+  slots open, queue:  $+ $lines(%qpath) $+ / $+ %maxqueue $+ . Record:  $+ %record $+ kb/s | %xc # $+ %num $+  %get [ $+ [ %num ] ] $+ x [ $+ $fsize(%num) $+ %bc $+ ] %filedesc [ $+ [ %num ] ] 
  450. n448=  if (%fcomment [ $+ [ %num ] ] == $null) goto start | %xc á^- %fcomment [ $+ [ %num ] ] | goto start
  451. n449=}
  452. n450=xdccload {
  453. n451=  if ($1 == $null) halt | if ($readini %path $+ \xdcc.txt $1 numpacks == $null) { echo %c -a %h No such offer in xdcc save. | halt } | set %i 0 | %numpacks = $readini %path $+ \xdcc.txt $1 numpacks | :start | inc %i | if (%i > %numpacks) { echo %c -a %h XDCC offer  $+ %c2 $+ $1 $+  has been loaded. | xdcc on | halt }
  454. n452=  set %file [ $+ [ %i ] ] $readini %path $+ \xdcc.txt $1 file [ $+ [ %i ] ] | set %filedesc [ $+ [ %i ] ] $readini %path $+ \xdcc.txt $1 desc [ $+ [ %i ] ] | set %get [ $+ [ %i ] ] $readini %path $+ \xdcc.txt $1 get [ $+ [ %i ] ] |  if ($readini %path $+ \xdcc.txt $1 fc [ $+ [ %i ] ] == yes) set %fcomment [ $+ [ %i ] ] $readini %path $+ \xdcc.txt $1 comment [ $+ [ %i ] ] | goto start
  455. n453=}
  456. n454=xdccsave {
  457. n455=  if (($1 == $null) || (%numpacks == 0) || (%numpacks == $null)) halt | set %i 0 | writeini %path $+ \xdcc.txt $1 numpacks %numpacks | :start | inc %i | if (%i > %numpacks) { echo %c -a %h XDCC offer  $+ %c2 $+ $1 $+  has been saved. | halt } 
  458. n456=  writeini %path $+ \xdcc.txt $1 file [ $+ [ %i ] ] %file [ $+ [ %i ] ] | writeini %path $+ \xdcc.txt $1 get [ $+ [ %i ] ] %get [ $+ [ %i ] ] | if (%fcomment [ $+ [ %i ] ] != $null) { writeini %path $+ \xdcc.txt $1 comment [ $+ [ %i ] ] %fcomment [ $+ [ %i ] ] | writeini %path $+ \xdcc.txt $1 fc [ $+ [ %i ] ] yes } |  writeini %path $+ \xdcc.txt $1 desc [ $+ [ %i ] ] %filedesc [ $+ [ %i ] ] | goto start
  459. n457=}
  460. n458=checkspeed { 
  461. n459=  set %i 0 | :start | inc %i | if ($send(%i) == $null) halt | if ($send(%i) == $1) && ($send(%i).file == $2) {
  462. n460=    if ($send(%i).status == waiting) { raw -q notice $1 :You have DCCs pending. Type /DCC GET $me $+ . | .timer 1 30 checkspeed *1 | halt } | if ($send(%i).cps < $3) { %mstime = $send(%i).cps / 1000 | %msspeed = $3 / 1000 | close -s $1 $2 | raw -q notice $1 :MINSPEED: %mstime $+ kb/sec less than %msspeed $+ kb/sec: Closing connection. | halt }
  463. n461=  }
  464. n462=  goto start 
  465. n463=}
  466. n464=pchannels .timer 0 %tc plist $?="enter channel to send plist to (cancel for all):" 
  467. n465=poff { .timers off | .timer1 0 60 online }
  468. n466=timelimit %chsend = 60 * $$1
  469. n467=maxslots set %maxslots $$1
  470. n468=qmax set %maxqueue $$1
  471. n469=ptime %tc = $$1 * 60
  472. n470=cool { 
  473. n471=  unset *cool  %i %text.cool
  474. n472=  set %text1.cool $replace(*1,$chr(32),) | set %front.cool $rand(0,15) | set %back.cool %front.cool + 2 | if (%back.cool > 15) set %back.cool %back.cool - 15
  475. n473=  :again | inc %i | if (2 // %i) set %text.cool %text.cool  $+ %back.cool $+ , $+ %front.cool $+ $mid(%i,1,%text1.cool)
  476. n474=  else set %text.cool %text.cool  $+ %front.cool $+ , $+ %back.cool  $+ $mid(%i,1,%text1.cool)
  477. n475=  if (%i == $len(%text1.cool)) { set %text.cool $remove(%text.cool,$chr(32)) | set %text.cool $replace(%text.cool,,$chr(32)) | msg $active %text.cool | halt }
  478. n476=  goto again
  479. n477=}
  480.